@import '~less/mixin.less';

.box {
  border-radius: 5px;
  background:linear-gradient(170.8deg,rgba(73,149,237,1),rgba(47,117,199,1));
  box-shadow:0px 2px 5px 0px rgba(58,135,224,0.54);
  margin-top: 12px;
  position: relative;
  color: #fff;

  &:first-child {
    margin-top: 0;
  }

  &-sold,
  &[disabled] {
    .box-status {
      background: #1D5EAB !important;
      color: #357CCF !important;
      pointer-events: none;
      cursor: none;

      &:before {
        border-right-color: #1D5EAB !important;
      }
    }
  }

  &-sold {
    .box-status {
      &:after {
        content: '已售';
      }
    }
  }

  &-wrap {
    padding: 16px 15px;
  }

  &-content {
    padding: 12px 120px 12px 14px;

    h1 {
      margin: 0 0 10px;
      color: #fff;
      font-size: 15px;
      font-weight: 600;
    }
  }

  &-info {
    margin-top: 10px;
    font-size: 13px;

    .clearfix();

    &:first-child {
      margin-top: 0;
    }

    &-title {
      width: 64px;
      color: #94C5FF;
      float: left;

      .text-overflow();

      &:after {
        content: ':';
      }
    }

    &-value {
      margin-left: 64px;
    }
  }

  &-status {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 39px;
    line-height: 39px;
    text-align: center;
    font-size: 16px;
    background: #fff;
    width: 101px;
    color: #357CCF;
    border-bottom-right-radius: 5px;

    &:before {
      content: '';
      position: absolute;
      left: -15px;
      bottom: 0;
      width: 0;
      height: 0;
      border-top: 39px solid transparent;
      border-right: 15px solid #fff;
    }

    &:after {
      content: '立即锁定';
    }
  }
}

.house {
  background: #fff;

  &-header {
    height: 56px;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    align-items: center;
    position: relative;

    .hairline(bottom, #eee);

    h1 {
      font-size: 20px;
      color: #000;
      font-weight: 500;
      padding-left: 30px;
      background: url('./img/building.png') no-repeat left center;
      background-size: 20px 20px;

      .text-overflow();
    }

    a {
      white-space: nowrap;
      margin-left: 10px;
      font-size: 17px;
      color: #4A4A4A;
    }
  }

  &-body {
    text-align: left;
    padding: 15px 20px 25px;

    h2 {
      font-weight: 500;
      font-size: 17px;
      margin-bottom: 20px;
      line-height: 1.2;
    }
  }

  &-footer {
    &-action {
      border-radius: 0;
      display: block;
      width: 100%;
      border: none;
      font-size: 17px;
      height: 49px;
      line-height: 49px;
    }
  }

  &-info {
    font-size: 13px;
    margin-top: 16px;

    &:first-child {
      margin-top: 0;
    }

    .clearfix();

    &-title {
      float: left;
      width: 66px;
      color: #9B9B9B;

      .text-overflow();

      &:after {
        content: '';
      }
    }

    &-value {
      margin-left: 66px;
      color: #4A4A4A;
    }
  }
}
